package com.jinzecloud.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jinzecloud.blog.bean.User;
import com.jinzecloud.blog.utils.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper extends BaseMapper<User> {

    void addUser(User user);

    void alteUser(User user);

    void deleteUser(@Param("id") Long[] id);

    User byId(Long id);

    List<User> listUser(@Param("params") Map<String, Object> params);

    int totalCount();

    void updateStatus(User user);

    void updatePassword(User user);

    User login(User user);

    int checkName(String name);
}
